package cn.wzy.pojo;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
 * (Shop)表实体类
 *
 * @author makejava
 * @since 2023-01-09 17:36:55
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_org_shop")
public class Shop{
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private String name;
    
    private String tel;
    @TableField("registerTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date registerTime;
    //1=待审核 2=审核通过待激活 3=激活成功 4=驳回
    private Integer state;
    
    private String address;
    
    private String logo;
    //店铺管理员,关联员工表
    private Long adminId;

    @TableField(exist = false)
    private Employee admin;
}

